package com.jiyinit.web.core.business.service;

import com.jiyinit.core.framework.base.paging.PagingResult;
import com.jiyinit.web.core.business.dao.TabUserAttendanceDao;
import com.jiyinit.web.core.business.dto.UserAttendanceRequest;
import com.jiyinit.web.core.business.entity.TabUserAttendanceEntity;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

 /**
  * 考勤服务
  * @author liuzongguang
  * @create 2018/8/29 16:34
  * @param
  * @return
  */
 
@Service("core.userAttendanceImpl")
public class UserAttendanceServiceImpl {

    @Resource(name = "core.tabUserAttendanceDao")
    private TabUserAttendanceDao userAttendanceDao;

    public int insert(UserAttendanceRequest request) {
        return userAttendanceDao.insert(request);
    }

    public PagingResult<TabUserAttendanceEntity> getAttendanceList(UserAttendanceRequest request){
        return userAttendanceDao.getAttendanceList(request);
    }
}
